<template>
  <myInject />
</template>

<script>
import { reactive, toRefs } from '@vue/reactivity'
import { provide } from '@vue/runtime-core'
import myInject from './Inject.vue'
export default {
    components: {
        myInject
    },
    setup () {
        const state = reactive({
            msg: 'Hello Vue World!'
        })
        provide('studentName', '刘艺丹') //注释即可看见默认inject值
        provide('grode', {
            Vue: 95,
            jQuery: 97
        })
        return {
            ...toRefs(state)
        }
    }
}
</script>

<style>

</style>